package games.ninJumpDx.ui.factorys
{
	import games.ninJumpDx.ui.actions.Dragon;
	import games.ninJumpDx.ui.actions.DragonWing;
	
	import interfaces.IAction;
	import utils.ActionFactory;

	public class DragonFactory extends ActionFactory
	{
		public function DragonFactory()
		{
			super();
		}
		
		override protected function createAction(name:String=null):IAction
		{
			switch(name)
			{
				case "dragon":
				case "dragon_reversion":
					return new Dragon(name);
				case "dragon_wing":
				case "dragon_wing_reversion":
					return new DragonWing(name);
			}
			return null;
		}
	}
}